#ifndef WELDPROPERTYDIALOG_H
#define WELDPROPERTYDIALOG_H

#include <QDialog>
#include "../CommunicateDelegate/communicatenormaldelegate.h"

namespace Ui {
class WeldPropertyDialog;
}

class WeldPropertyDialog : public QDialog
{
    Q_OBJECT

public:
    explicit WeldPropertyDialog(int styleId,CommunicateNormalDelegate *communicateNormalIn,QWidget *parent = 0);
    ~WeldPropertyDialog();

    void initialDisplayStyle(int styleId);
signals:

    /**
     * @brief showErrorMsgBox 显示信息弹窗内容
     * @param msg
     */
    void showErrorMsgBox(QString msg);


public slots:
    void showView_slot();

private slots:
    void on_returnBtn_clicked();

    void on_saveBtn_clicked();

    void on_comboBox_currentIndexChanged(int index);

private:
    void updateShowWeldInfo(int index);

    /**
     * @brief getCurrentPageInfoWithIndex  获取当前选中页面的信息
     * @param index
     */
    void updateUiShow(WeldProperty weldProperty);

private:
    Ui::WeldPropertyDialog *ui;

    CommunicateNormalDelegate *communicateNormalDelegate;


};

#endif // WELDPROPERTYDIALOG_H
